package pattern;

/**
 * Created by dycong on 2017/3/20.
 *
 */
public enum Singleton {
    INSTANCE {
        @Override
        protected void read() {
            System.out.println();
        }

        @Override
        protected void write() {

        }
    };

    protected abstract void read();

    protected abstract void write();


}
